package com.example.gokchinesefoodmappcdev.service;

import com.example.gokchinesefoodmappcdev.entity.CustomerInfo;
import com.example.gokchinesefoodmappcdev.entity.PageBean;
import com.example.gokchinesefoodmappcdev.util.ResultData;

import java.util.List;

public interface CustomerInfoService {
    /**
     * 分页查询
     * 根据条件查询所有用户
     * @param customerInfo 查询条件
     * @param pageNum
     * @param pageSize
     * @return
     */
    public PageBean<CustomerInfo> findCustomerInfoAll(CustomerInfo customerInfo, int pageNum, int pageSize);

    /**
     * 查询用户信息
     * @param customerId 用户id
     * @return
     */
    public ResultData findCustomerInfoAndLocationAddressByCustomerId(Integer customerId);

    /**
     * 修改用户状态
     * @param customerInfo
     * @return
     */
    public ResultData updateCustomerInfoStatusByCustomerId(CustomerInfo customerInfo);

    /**
     * 导出用户列表
     * @param customerInfo
     * @return
     */
    public List<CustomerInfo> outAllCustomerInfoExecl(CustomerInfo customerInfo);
}
